import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/activitylist',
    method: 'post',
    data,
  })
}

export function doAdd(data) {
  return request({
    url: '/activityadd',
    method: 'post',
    data,
  })
}

export function doEdit(data) {
  return request({
    url: '/activityedit',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/activitydelete',
    method: 'post',
    data,
  })
}

export function doFiled(data) {
  return request({
    url: '/activityfiled',
    method: 'post',
    data,
  })
}

// 获取活动材料类型列表
export function getCheckTypes(data) {
  return request({
    url: '/activitycheckform',
    method: 'post',
    data,
  })
}

// 提交活动验收材料
export function saveChecks(data) {
  return request({
    url: '/check',
    method: 'post',
    data,
  })
}
